package dao;

import hibernate.HibernateUtil;

import org.hibernate.SessionFactory;

public class HibernateDireccionBeanDAO 
{
	private static HibernateDireccionBeanDAO instancia = null;
	private static SessionFactory sf = null;

	public static HibernateDireccionBeanDAO getInstancia()
	{
		if(instancia == null)
		{
			sf = HibernateUtil.getSessionFactory();
			instancia = new HibernateDireccionBeanDAO();
		} 
		return instancia;
	}
}
